import ajax from '@/utils/request'

export function checkoutOrderFn(mode, obj) {
  return ajax({
    url: '/checkout/order',
    data: {

      mode,
      delivery: 10,
      payType: 10,
      couponId: 0,
      isUsePoints: 0,
      ...obj,
      // remark: "",

    }
  })
}

export function checkoutSubmitFn(mode, obj) {
  return ajax({
    url: '/checkout/submit',
    data: {

      mode,
      delivery: 10,
      payType: 10,
      couponId: 0,
      isUsePoints: 0,
      ...obj,
      // remark: "",

    }

  })
}

export function orderListFn(dataType, page) {
  return ajax({
    url: '/order/list',
    data: {
      dataType,
      page
    }

  })
}